/*
 *  $Id: Vanguard.cs 975 2009-12-16 17:13:22Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Affects {
    /// <summary>
    /// Эффект: авангард (флаг)
    /// Существо призывается сразу готовым к бою.
    /// </summary>
    public class Vanguard: FlagAffect {
        public override string Id {
            get { return "vanguard"; }
        }

        public override int BaseWeight {
            get { return 50; }
        }

        public override AffectIcon Icon {
            get { return AffectIcon.Vanguard; }
        }

        public override void SetAffect() {
            base.SetAffect();
            LocalSummary.AddVanguard(Always);
        }
        public override void ResetAffect() {
            base.ResetAffect();
            LocalSummary.RemoveVanguard(Always);
        }

        public static bool Always(Creature creature) { return true; }
    }
}